const randomName = {}

const p1 = ['一个', '一堆', '好多', '假装', '一匹', '暗中观察', '恋恋不忘', '想起', '']
const p2 = ['美丽', '羞涩', '大', '小', '白色', '硬核', '专业', '上流', '优秀', '附魔', '可怜', '弱小', '无助']
const p3 = ['钢笔', '威士忌', '小本本', '橘子', '帽子', '项链', '雷霆嘎巴', '小电驴']
const p4 = ['A', 'P', 'W', '1', '4', '6', 'a', 'h', 'm', 'Q', 'L', '&', '_', '%', '@', 'H', 'G', 'E', 'F']

randomName.get = function () {
  let random1 = Math.floor(Math.random() * p1.length)
  let random2 = Math.floor(Math.random() * p2.length)
  let random3 = Math.floor(Math.random() * p3.length)
  let random4_1 = Math.floor(Math.random() * p4.length)
  let random4_2 = Math.floor(Math.random() * p4.length)
  let random4_3 = Math.floor(Math.random() * p4.length)
  let random4_4 = Math.floor(Math.random() * p4.length)
  return p1[random1] + p2[random2] + '的' + p3[random3] + p4[random4_1] + p4[random4_2] + p4[random4_3] + p4[random4_4]
}

module.exports = randomName
